package org.kim.exception;

public class CustomUncaughtExceptionHandler implements Thread.UncaughtExceptionHandler{
    @Override
    public void uncaughtException(Thread t, Throwable e) {
        // 在这里实现你的异常处理逻辑
        System.out.println("An exception has been captured");
        System.out.println("Thread: " + t.getName());
        System.out.println("Exception: " + e.toString());
        // 可以添加日志记录、通知等进一步处理异常信息
    }
}
